package com.cxl.live.system.dto;

import com.cxl.live.base.BaseDTO;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @Description: UserInfo
 * @Author: ChenXueLi
 * @Date: 2018-10-04 10:14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "c_user_info")
public class UserInfo extends BaseDTO {



    @ApiModelProperty(value = "用户信息id", name = "infoId")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @OrderBy("DESC")
    private Integer infoId;

    @ApiModelProperty(value = "用户id外键", name = "fkUserId")
    private Integer fkUserId;

    @ApiModelProperty(value = "用户名称", name = "infoName")
    private String infoName;

    @ApiModelProperty(value = "用户联系方式", name = "infoPhone")
    private String infoPhone;

}
